<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic strace understanding in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/strace-understanding/m-p/3686200#M85596</link>
    <description>I have two RH AS2.1 servers running on DL380 g4. When I ssh to the servers and log out one server close my putty session other one just sits there w/o closing my putty session. I ran strace on the pid my session on both servers and I get this:&lt;BR /&gt; &lt;BR /&gt;From the server that closes putty:&lt;BR /&gt;&lt;BR /&gt;fstat64(3, {st_mode=S_IFREG|0600, st_size=1038, ...}) = 0&lt;BR /&gt;brk(0x80f3000)                          = 0x80f3000&lt;BR /&gt;read(3, "su -\nexit\nsudo netstat -an |grep"..., 1038) = 1038&lt;BR /&gt;close(3)                                = 0&lt;BR /&gt;rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0&lt;BR /&gt;ioctl(255, TIOCSPGRP, [26442])          = 0&lt;BR /&gt;rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0&lt;BR /&gt;setpgid(0, 26442)                       = -1 EPERM (Operation not permitted)&lt;BR /&gt;_exit(0)                                = ?&lt;BR /&gt;Process 26442 detached&lt;BR /&gt;&lt;BR /&gt;Server that doesn't close putty:&lt;BR /&gt;&lt;BR /&gt;fstat64(3, {st_mode=S_IFREG|0600, st_size=2677, ...}) = 0&lt;BR /&gt;brk(0x80f3000)                          = 0x80f3000&lt;BR /&gt;read(3, "sudo vi /etc/php.ini\nsudo locate"..., 2677) = 2677&lt;BR /&gt;close(3)                                = 0&lt;BR /&gt;rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0&lt;BR /&gt;ioctl(255, TIOCSPGRP, [15334])          = 0&lt;BR /&gt;rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0&lt;BR /&gt;setpgid(0, 15334)                       = -1 EPERM (Operation not permitted)&lt;BR /&gt;_exit(0)                                = ?&lt;BR /&gt;Process 15334 detached&lt;BR /&gt;&lt;BR /&gt;The line I don't understand is:&lt;BR /&gt;sudo vi /etc/php.ini\nsudo locate&lt;BR /&gt;I have nothing to do with php.ini file. I don't know where is it getting from?.&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Santha</description>
    <pubDate>Tue, 06 Dec 2005 23:56:21 GMT</pubDate>
    <dc:creator>Sivasingam Santhakumar</dc:creator>
    <dc:date>2005-12-06T23:56:21Z</dc:date>
    <item>
      <title>strace understanding</title>
      <link>https://community.hpe.com/t5/operating-system-linux/strace-understanding/m-p/3686200#M85596</link>
      <description>I have two RH AS2.1 servers running on DL380 g4. When I ssh to the servers and log out one server close my putty session other one just sits there w/o closing my putty session. I ran strace on the pid my session on both servers and I get this:&lt;BR /&gt; &lt;BR /&gt;From the server that closes putty:&lt;BR /&gt;&lt;BR /&gt;fstat64(3, {st_mode=S_IFREG|0600, st_size=1038, ...}) = 0&lt;BR /&gt;brk(0x80f3000)                          = 0x80f3000&lt;BR /&gt;read(3, "su -\nexit\nsudo netstat -an |grep"..., 1038) = 1038&lt;BR /&gt;close(3)                                = 0&lt;BR /&gt;rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0&lt;BR /&gt;ioctl(255, TIOCSPGRP, [26442])          = 0&lt;BR /&gt;rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0&lt;BR /&gt;setpgid(0, 26442)                       = -1 EPERM (Operation not permitted)&lt;BR /&gt;_exit(0)                                = ?&lt;BR /&gt;Process 26442 detached&lt;BR /&gt;&lt;BR /&gt;Server that doesn't close putty:&lt;BR /&gt;&lt;BR /&gt;fstat64(3, {st_mode=S_IFREG|0600, st_size=2677, ...}) = 0&lt;BR /&gt;brk(0x80f3000)                          = 0x80f3000&lt;BR /&gt;read(3, "sudo vi /etc/php.ini\nsudo locate"..., 2677) = 2677&lt;BR /&gt;close(3)                                = 0&lt;BR /&gt;rt_sigprocmask(SIG_BLOCK, [CHLD TSTP TTIN TTOU], [], 8) = 0&lt;BR /&gt;ioctl(255, TIOCSPGRP, [15334])          = 0&lt;BR /&gt;rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0&lt;BR /&gt;setpgid(0, 15334)                       = -1 EPERM (Operation not permitted)&lt;BR /&gt;_exit(0)                                = ?&lt;BR /&gt;Process 15334 detached&lt;BR /&gt;&lt;BR /&gt;The line I don't understand is:&lt;BR /&gt;sudo vi /etc/php.ini\nsudo locate&lt;BR /&gt;I have nothing to do with php.ini file. I don't know where is it getting from?.&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Santha</description>
      <pubDate>Tue, 06 Dec 2005 23:56:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/strace-understanding/m-p/3686200#M85596</guid>
      <dc:creator>Sivasingam Santhakumar</dc:creator>
      <dc:date>2005-12-06T23:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: strace understanding</title>
      <link>https://community.hpe.com/t5/operating-system-linux/strace-understanding/m-p/3686201#M85597</link>
      <description>Which shell are you using?  I traced an exit and a logout command from a putty window logged into a RHEL 3 box and don't see any sudo commands. Are you using a .bashlogout script or if you're not using bash, some other script that executes during logout/exit?&lt;BR /&gt;&lt;BR /&gt;As for the sudo command - This appears to be two commands separated by a new line \n&lt;BR /&gt;&lt;BR /&gt;sudo vi /etc/php.ini&lt;BR /&gt;&lt;BR /&gt;followed by &lt;BR /&gt;&lt;BR /&gt;sudo locate&lt;BR /&gt;&lt;BR /&gt;You can find out more on sudo and locate from the man pages.</description>
      <pubDate>Fri, 30 Dec 2005 09:21:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/strace-understanding/m-p/3686201#M85597</guid>
      <dc:creator>Patrick Lampert_1</dc:creator>
      <dc:date>2005-12-30T09:21:30Z</dc:date>
    </item>
  </channel>
</rss>

