<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux程序已运行实体的检测以及其PID的获得</title> <atom:link href="http://apt-blog.net/linux_running_program_checking/feed" rel="self" type="application/rss+xml" /><link>http://apt-blog.net/linux_running_program_checking</link> <description>潜逃中。</description> <lastBuildDate>Sun, 05 Feb 2012 12:10:46 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Unix单实例后台守护进程的“规范方法” - apt-blog.net IT民工养成计划 PT博客</title><link>http://apt-blog.net/linux_running_program_checking/comment-page-1#comment-550</link> <dc:creator>Unix单实例后台守护进程的“规范方法” - apt-blog.net IT民工养成计划 PT博客</dc:creator> <pubDate>Tue, 02 Jun 2009 12:35:10 +0000</pubDate> <guid
isPermaLink="false">http://apt-blog.net/archives/403.html#comment-550</guid> <description>[...] 分类： Unix/Linux 发布于： 2009.06.02 星期二 此前的笔记《Linux程序已运行实体的检测以及其PID的获得》通过Linux里面的bash命令来获取正在运行的同名进程的pid，但实际上，平常此类程序所用的方法都是文件锁，比如dhclient、apt-get系列、pacman诸如此类，都是通过往/var/run里面写入一个包含自身pid的xx.pid文件，同时加上排他锁，只要当前进程还在，新的进程就不可能再加锁，也就能检测出是否单实例了。 [...]</description> <content:encoded><![CDATA[<p>[...] 分类： Unix/Linux 发布于： 2009.06.02 星期二 此前的笔记《Linux程序已运行实体的检测以及其PID的获得》通过Linux里面的bash命令来获取正在运行的同名进程的pid，但实际上，平常此类程序所用的方法都是文件锁，比如dhclient、apt-get系列、pacman诸如此类，都是通过往/var/run里面写入一个包含自身pid的xx.pid文件，同时加上排他锁，只要当前进程还在，新的进程就不可能再加锁，也就能检测出是否单实例了。 [...]</p> ]]></content:encoded> </item> <item><title>By: PT</title><link>http://apt-blog.net/linux_running_program_checking/comment-page-1#comment-540</link> <dc:creator>PT</dc:creator> <pubDate>Fri, 29 May 2009 12:03:51 +0000</pubDate> <guid
isPermaLink="false">http://apt-blog.net/archives/403.html#comment-540</guid> <description>所以我说这不是最好的方法,呵呵.
文件锁信号量锁等方法确实更常用,dhclient、apt都是用了文件锁的方法，而全局信号量锁在win下很常见；</description> <content:encoded><![CDATA[<p>所以我说这不是最好的方法,呵呵.</p><p>文件锁信号量锁等方法确实更常用,dhclient、apt都是用了文件锁的方法，而全局信号量锁在win下很常见；</p> ]]></content:encoded> </item> <item><title>By: AzureSky</title><link>http://apt-blog.net/linux_running_program_checking/comment-page-1#comment-536</link> <dc:creator>AzureSky</dc:creator> <pubDate>Thu, 28 May 2009 09:56:02 +0000</pubDate> <guid
isPermaLink="false">http://apt-blog.net/archives/403.html#comment-536</guid> <description>http://www.azuresky.net.ru/blog/read.php/14.htm
只让程序执行一个副本,这是APUE的一个例子，你的实现很别扭，看来你没看过APUE，哈哈，要看看了</description> <content:encoded><![CDATA[<p><a
href="http://www.azuresky.net.ru/blog/read.php/14.htm" rel="nofollow">http://www.azuresky.net.ru/blog/read.php/14.htm</a></p><p>只让程序执行一个副本,这是APUE的一个例子，你的实现很别扭，看来你没看过APUE，哈哈，要看看了</p> ]]></content:encoded> </item> <item><title>By: B2Kee</title><link>http://apt-blog.net/linux_running_program_checking/comment-page-1#comment-500</link> <dc:creator>B2Kee</dc:creator> <pubDate>Tue, 26 May 2009 16:29:43 +0000</pubDate> <guid
isPermaLink="false">http://apt-blog.net/archives/403.html#comment-500</guid> <description>哇，可怜才刚在学linux c 紧跟大牛步伐。。</description> <content:encoded><![CDATA[<p>哇，可怜才刚在学linux c 紧跟大牛步伐。。</p> ]]></content:encoded> </item> <item><title>By: PT</title><link>http://apt-blog.net/linux_running_program_checking/comment-page-1#comment-486</link> <dc:creator>PT</dc:creator> <pubDate>Tue, 26 May 2009 09:49:32 +0000</pubDate> <guid
isPermaLink="false">http://apt-blog.net/archives/403.html#comment-486</guid> <description>确实～但是不同名字的程序算不算同一个程序呢？哈哈～
一般用户没那么刁难的……</description> <content:encoded><![CDATA[<p>确实～但是不同名字的程序算不算同一个程序呢？哈哈～</p><p>一般用户没那么刁难的……</p> ]]></content:encoded> </item> <item><title>By: bones7456</title><link>http://apt-blog.net/linux_running_program_checking/comment-page-1#comment-485</link> <dc:creator>bones7456</dc:creator> <pubDate>Tue, 26 May 2009 07:30:58 +0000</pubDate> <guid
isPermaLink="false">http://apt-blog.net/archives/403.html#comment-485</guid> <description>总觉得这个办法不太好.人家把 ZDClient 改个名字运行,就看不出来了...</description> <content:encoded><![CDATA[<p>总觉得这个办法不太好.人家把 ZDClient 改个名字运行,就看不出来了...</p> ]]></content:encoded> </item> </channel> </rss>
