comparison fixincludes/server.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents 77e2b8dfacca
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
190 signal (SIGPIPE, sig_handler); 190 signal (SIGPIPE, sig_handler);
191 signal (SIGALRM, sig_handler); 191 signal (SIGALRM, sig_handler);
192 192
193 fputs ("trap : 1\n", server_pair.pf_write); 193 fputs ("trap : 1\n", server_pair.pf_write);
194 fflush (server_pair.pf_write); 194 fflush (server_pair.pf_write);
195 getcwd (buff, MAXPATHLEN + 1); 195 if (getcwd (buff, MAXPATHLEN + 1) == NULL)
196 buff[0] = 0;
196 p_cur_dir = xstrdup (buff); 197 p_cur_dir = xstrdup (buff);
197 } 198 }
198 199
199 /* 200 /*
200 * find_shell 201 * find_shell