diff options
author | 2006-07-31 06:59:41 +1000 | |
---|---|---|
committer | 2006-07-31 06:59:41 +1000 | |
commit | 89d876d0f7408ff2b067acdc0393683741776292 (patch) | |
tree | 7440843aa4572ac201f0157a0fff272d155030d6 /fallback.c | |
parent | e79fdcb194f81eaf40d6f973d413bc45c38c65ce (diff) |
Provide fallback of killpg function
darcs-hash:20060730205941-ac50b-ddcec32cc5ab74770b743fed3d131460ee576191.gz
Diffstat (limited to 'fallback.c')
-rw-r--r-- | fallback.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -25,6 +25,7 @@ #include <dirent.h> #include <stdarg.h> #include <limits.h> +#include <assert.h> #if HAVE_NCURSES_H #include <ncurses.h> @@ -1076,3 +1077,10 @@ int _nl_msg_cat_cntr=0; #endif +#ifndef HAVE_KILLPG +int killpg( int pgr, int sig ) +{ + assert( pgr > 0 ); + return kill( -pgr, sig ); +} +#endif |