Oh yeah - if you *really* want to do this, fork() first and test in the child. If the child exited with a segfault you know it was a bad idea.
-- - Gus -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug