<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>3291</bug_id>
          
          <creation_ts>2003-11-20 12:11:26 +0300</creation_ts>
          <short_desc>pdnsd does not detach from the terminal properly</short_desc>
          <delta_ts>2006-08-29 20:53:45 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>pdnsd</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Vlasov">vsu</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10656</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Vlasov">vsu</who>
    <bug_when>2003-11-20 12:11:26 +0300</bug_when>
    <thetext>pdnsd does not close stdout and stderr.  This can cause problems when, e.g.,
restarting it in a ssh session - because the pseudoterminal is left open, the
session cannot be closed normally.

Steps to Reproduce:
# service pdnsd restart
Stopping pdnsd service:                                                        
                                            [ DONE ]
Starting pdnsd service:                                                        
                                            [ DONE ]
# ps ax|grep [p]dnsd
14614 ?        S      0:00 /usr/sbin/pdnsd --daemon --config-file
/etc/pdnsd.conf -p /var/run/pdnsd.pid
# lsof -p 14614
COMMAND   PID  USER   FD   TYPE     DEVICE    SIZE   NODE NAME
pdnsd   14614 pdnsd  cwd    DIR        3,7      48    349 /var/empty
pdnsd   14614 pdnsd  rtd    DIR        3,7      48    349 /var/empty
pdnsd   14614 pdnsd  txt    REG        3,7  131896  85552 /usr/sbin/pdnsd
pdnsd   14614 pdnsd  mem    REG        3,7   71000    183 /lib/ld-2.2.6.so
pdnsd   14614 pdnsd  mem    REG        3,7   36808    201 /lib/libnss_files-2.2.6.so
pdnsd   14614 pdnsd  mem    REG        3,7  105521    203 /lib/libpthread-0.9.so
pdnsd   14614 pdnsd  mem    REG        3,7 1145896    191 /lib/libc-2.2.6.so
pdnsd   14614 pdnsd  mem    REG        3,7   39928  25638
/lib/libnss_nisplus-2.2.6.so
pdnsd   14614 pdnsd  mem    REG        3,7   73644    199 /lib/libnsl-2.2.6.so
pdnsd   14614 pdnsd  mem    REG        3,7   35284  25635 /lib/libnss_nis-2.2.6.so
pdnsd   14614 pdnsd    0u   REG        3,7       4  85583
/var/cache/pdnsd/pdnsd.cache
pdnsd   14614 pdnsd    1u   CHR      136,6              8 /dev/pts/6
pdnsd   14614 pdnsd    2u   CHR      136,6              8 /dev/pts/6
pdnsd   14614 pdnsd    3u  unix 0xddd8f5e0         167615 /var/run/pdnsd/socket
pdnsd   14614 pdnsd    4u  IPv4     167617            TCP
localhost.localdomain:domain (LISTEN)
pdnsd   14614 pdnsd    5u  IPv4     167618            UDP
localhost.localdomain:domain 
pdnsd   14614 pdnsd    6r  FIFO        0,4         167620 pipe
pdnsd   14614 pdnsd    7w  FIFO        0,4         167620 pipe

Actual Results:  
Terminal (/dev/pts/6 in this case) is still open on fd 1 and 2.

Expected Results:  
fd 1 and 2 should point somewhere else (probably to /dev/null), terminal device
should not be held open by the pdnsd process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31061</commentid>
    <comment_count>1</comment_count>
    <who name="at@altlinux.org">at</who>
    <bug_when>2005-09-28 04:09:14 +0400</bug_when>
    <thetext>I think this was fixed with 1.2-alt1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>