Changeset 3000 for neercs


Ignore:
Timestamp:
Oct 19, 2008, 12:01:25 AM (11 years ago)
Author:
Pascal Terjan
Message:
  • Fail early when /proc/<PID>/environ can not be read
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/mytrace.c

    r2999 r3000  
    430430
    431431    fd = open(envpath, O_RDONLY);
     432    if (fd == -1)
     433        return -1;
    432434    r = read(fd, env, envsize);
    433435    close(fd);
Note: See TracChangeset for help on using the changeset viewer.