diff options
author | 2000-04-19 07:05:48 +0000 | |
---|---|---|
committer | 2000-04-19 07:05:48 +0000 | |
commit | b3a710d4dd54daa8ef5de121b9175eb2c52de22f (patch) | |
tree | cbbf45a28658790cfc3525d2d51bfe9c046da7fe /usr.bin/ssh/serverloop.c | |
parent | tdb_ref should be signed, this avoid a problem with flushing the TDB (diff) | |
download | wireguard-openbsd-b3a710d4dd54daa8ef5de121b9175eb2c52de22f.tar.xz wireguard-openbsd-b3a710d4dd54daa8ef5de121b9175eb2c52de22f.zip |
pid_t
Diffstat (limited to 'usr.bin/ssh/serverloop.c')
-rw-r--r-- | usr.bin/ssh/serverloop.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/ssh/serverloop.c b/usr.bin/ssh/serverloop.c index b482c228ef4..93c33534d08 100644 --- a/usr.bin/ssh/serverloop.c +++ b/usr.bin/ssh/serverloop.c @@ -48,7 +48,7 @@ static int max_fd; /* Max file descriptor number for select(). */ * will exit after that, as soon as forwarded connections have terminated. */ -static int child_pid; /* Pid of the child. */ +static pid_t child_pid; /* Pid of the child. */ static volatile int child_terminated; /* The child has terminated. */ static volatile int child_wait_status; /* Status from wait(). */ @@ -58,7 +58,8 @@ void sigchld_handler(int sig) { int save_errno = errno; - int wait_pid; + pid_t wait_pid; + debug("Received SIGCHLD."); wait_pid = wait((int *) &child_wait_status); if (wait_pid != -1) { @@ -364,9 +365,10 @@ process_buffered_input_packets() * child program). */ void -server_loop(int pid, int fdin_arg, int fdout_arg, int fderr_arg) +server_loop(pid_t pid, int fdin_arg, int fdout_arg, int fderr_arg) { - int wait_status, wait_pid; /* Status and pid returned by wait(). */ + int wait_status; /* Status returned by wait(). */ + pid_t wait_pid; /* pid returned by wait(). */ int waiting_termination = 0; /* Have displayed waiting close message. */ unsigned int max_time_milliseconds; unsigned int previous_stdout_buffer_bytes; |