This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: big kill patch (adds list/help/version)


On Mon, Mar 11, 2002 at 07:48:07AM -0800, Joshua Daniel Franklin wrote:
>
>--- Christopher Faylor <cgf@redhat.com> wrote:
>> >> How does the linux kill program handle this?
>> >RedHat's prints a list like
>> > 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL
>> > 5) SIGTRAP      6) SIGABRT      7) SIGBUS       8) SIGFPE
>> >...
>> >Looks hard-coded to me, but I didn't look at the sources. I'll hard-code 
>> >the list in the print_list () function.
>> 
>> You're looking at the bash built-in.  /bin/kill just does this:
>> 
>> HUP INT QUIT ILL ABRT FPE KILL SEGV PIPE ALRM TERM USR1 USR2 CHLD CONT
>> STOP TSTP TTIN TTOU TRAP IOT BUS SYS STKFLT URG IO POLL CLD XCPU XFSZ
>> VTALRM PROF PWR WINCH UNUSED
>> 
>Indeed. Now, am I correct in thinking that I cannot look at the util-linux
>sources to see how it works?

I don't see any reason why not.  Just don't copy code wholesale from the
sources.  But you knew that...

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]