Changeset 272


Ignore:
Timestamp:
07/20/06 12:50:19 (15 years ago)
Author:
bastiaans
Message:

jobmond/jobmond.py:

  • fixed fd closure bug: /dev/null fd duplication to stderr and stdout was not working
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobmond/jobmond.py

    r266 r272  
    568568                sys.stderr.close()
    569569
    570                 os.open('/dev/null', 0)
    571                 os.dup(0)
    572                 os.dup(0)
     570                os.open('/dev/null', os.O_RDWR)
     571                os.dup2(0, 1)
     572                os.dup2(0, 2)
    573573
    574574                self.run()
Note: See TracChangeset for help on using the changeset viewer.