Browse Source

*** empty log message ***

master
Marc Alexander Lehmann 14 years ago
parent
commit
37eea3cc6e
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      ev.c

+ 5
- 1
ev.c View File

@ -540,12 +540,16 @@ ev_version_minor (void)
return EV_VERSION_MINOR;
}
/* return true if we are running with elevated privileges and ignore env variables */
/* return true if we are running with elevated privileges and should ignore env variables */
static int
enable_secure ()
{
#ifdef WIN32
return 0;
#else
return getuid () != geteuid ()
|| getgid () != getegid ();
#endif
}
int ev_init (int methods)


Loading…
Cancel
Save