From f1f23a364ccf4902f6594fd6319182ca29ad5582 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 28 Jun 2009 02:21:19 +0000 Subject: * use portable way (as defined in man) to alter signal handler git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4708 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- common/sys/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/sys') diff --git a/common/sys/file.c b/common/sys/file.c index da451280..2165e7b5 100644 --- a/common/sys/file.c +++ b/common/sys/file.c @@ -214,7 +214,7 @@ Rename(const char *src, const char *dst) return -1; // because we need the return value, override the signal handler - s = signal(SIGCHLD, NULL); + s = signal(SIGCHLD, SIG_DFL); pid = fork(); if (pid == 0) -- cgit v1.2.3