lkml.org 
[lkml]   [1998]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Linux has a broken shutdown syscall!
Date
> 
> Hmm. This is going to be tricky for Perl to deal with. I imagine we can
> safely assume that 2.0.x kernels are going to be in widespread use for
> quite a while (since they generally work so well). I could have Perl's
> Configure detect and deal with this at build time, but since it is common
> for folks to distribute Linux binaries, we can't assume that perl will
> always run on the same kernel under which it was built.
>
> I'm open to suggestions.

Do the 'uname' system call and look at the version number at runtime. Have 2
configuration variables which contain the shutdown states. If you detect
strncmp(utsname.release,"2.0",3)==0 then set it up for the munge, else
make it right. This can all just be an #ifdef to please the clean code guys.

>
> Andy Dougherty doughera@lafcol.lafayette.edu

--
Perry Harrington Linux rules all OSes. APSoft ()
email: perry@apsoft.com Think Blue. /\

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.048 / U:1.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site