Messages in this thread | | | From | Perry Harrington <> | Subject | Re: Linux has a broken shutdown syscall! | Date | Tue, 28 Apr 1998 12:05:19 -0700 (PDT) |
| |
> > 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
| |