rt_names: stop allocating 5k in rwdata
[oweals/busybox.git] / networking / udhcp / signalpipe.c
index 9951eb57d1d5b072fa160205e59a33308a13d3af..361596580ac70848b3c8341d2a84096c580e76a4 100644 (file)
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <unistd.h>
-#include <fcntl.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/select.h>
-
-
-#include "signalpipe.h"
 #include "common.h"
 
+
 static int signal_pipe[2];
 
 static void signal_handler(int sig)
 {
        if (send(signal_pipe[1], &sig, sizeof(sig), MSG_DONTWAIT) < 0)
-               DEBUG(LOG_ERR, "Could not send signal: %m");
+               bb_perror_msg("cannot send signal");
 }