This was the block before:
void
_kill_info_slave(void)
{
WAIT_TYPE my_stat;
Pid_t pid;
struct timeval pad;
if (info_slave_state != 0) {
if (info_slave_pid > 0) {
do_rawlog(LT_ERR, "kill: killing info_slave_pid %d", info_slave_pid);
block_a_signal(SIGCHLD);
closesocket(info_slave);
kill(info_slave_pid, 15);
/* Have to wait long enough for the info_slave to actually
die. This will hopefully be enough time. */
pad.tv_sec = 0;
pad.tv_usec = 100;
select(0, NULL, NULL, NULL, &pad);
#ifdef HAS_WAITPID
pid = waitpid(info_slave_pid, &my_stat, WNOHANG);
#else
pid = wait3(&my_stat, WNOHANG, 0);
#endif
info_slave_pid = -1;
unblock_a_signal(SIGCHLD);
}
info_slave_state = 0;
}
}
#endif
And this is the block afterwards:
void
#ifdef _kill_info_slave(void)
{
WAIT_TYPE my_stat;
Pid_t pid;
struct timeval pad;
if (info_slave_state != 0) {
if (info_slave_pid > 0) {
do_rawlog(LT_ERR, "kill: killing info_slave_pid %d", info_slave_pid);
block_a_signal(SIGCHLD);
closesocket(info_slave);
kill(info_slave_pid, 15);
/* Have to wait long enough for the info_slave to actually
die. This will hopefully be enough time. */
pad.tv_sec = 0;
pad.tv_usec = 100;
select(0, NULL, NULL, NULL, &pad);
#ifdef HAS_WAITPID
pid = waitpid(info_slave_pid, &my_stat, WNOHANG);
#else
pid = wait3(&my_stat, WNOHANG, 0);
#endif
info_slave_pid = -1;
unblock_a_signal(SIGCHLD);
}
info_slave_state = 0;
}
}
#endif
I now get the following error:
Compiling...
bsd.c
C:\Documents and Settings\Joanthan\Desktop\pennmush\src\bsd.c(4682) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
pennmush.exe - 1 error(s), 0 warning(s)
Did I put it in the right place? |