<?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: System backup script: no more endless lock</title> <atom:link href="http://kevin.deldycke.com/2007/08/system-backup-script-no-more-endless-lock/feed/" rel="self" type="application/rss+xml" /><link>http://kevin.deldycke.com/2007/08/system-backup-script-no-more-endless-lock/</link> <description>Free software engineer &#38; wannabe videomaker</description> <lastBuildDate>Sun, 29 Jan 2012 13:35:17 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: Taoufix</title><link>http://kevin.deldycke.com/2007/08/system-backup-script-no-more-endless-lock/comment-page-1/#comment-3460</link> <dc:creator>Taoufix</dc:creator> <pubDate>Tue, 11 Mar 2008 16:47:56 +0000</pubDate> <guid isPermaLink="false">http://kevin.deldycke.com/2007/08/system-backup-script-no-more-endless-lock/#comment-3460</guid> <description>The 1st time running the script it always crashes w/: [code lang=&quot;python&quot;] exit_code = waitpid(child.pid, 0)[1] OSError: [Errno 10] No child processes [/code]as a work around I use this: [code lang=&quot;python&quot;] try: exit_code = waitpid(child.pid, 0)[1] except OSError: exit_code = 1 [/code]</description> <content:encoded><![CDATA[<p>The 1st time running the script it always crashes w/:</p><pre class="brush: python; title: ; notranslate">
    exit_code = waitpid(child.pid, 0)[1]
OSError: [Errno 10] No child processes
</pre><p>as a work around I use this:</p><pre class="brush: python; title: ; notranslate">
  try:
    exit_code = waitpid(child.pid, 0)[1]
  except OSError:
    exit_code = 1
</pre>]]></content:encoded> </item> <item><title>By: Integer Originator</title><link>http://kevin.deldycke.com/2007/08/system-backup-script-no-more-endless-lock/comment-page-1/#comment-3441</link> <dc:creator>Integer Originator</dc:creator> <pubDate>Mon, 03 Mar 2008 13:41:28 +0000</pubDate> <guid isPermaLink="false">http://kevin.deldycke.com/2007/08/system-backup-script-no-more-endless-lock/#comment-3441</guid> <description>[code lang=&quot;python&quot;] Traceback (most recent call last): File &quot;bq-my-system-backup-2007_08_12.py&quot;, line 357, in ? main() [/code]is common ?</description> <content:encoded><![CDATA[<pre class="brush: python; title: ; notranslate">
Traceback (most recent call last):
File "bq-my-system-backup-2007_08_12.py", line 357, in ?
main()
</pre><p>is common ?</p> ]]></content:encoded> </item> <item><title>By: donwe</title><link>http://kevin.deldycke.com/2007/08/system-backup-script-no-more-endless-lock/comment-page-1/#comment-3151</link> <dc:creator>donwe</dc:creator> <pubDate>Fri, 14 Sep 2007 07:31:36 +0000</pubDate> <guid isPermaLink="false">http://kevin.deldycke.com/2007/08/system-backup-script-no-more-endless-lock/#comment-3151</guid> <description>This version does not work on my server as it produced many errors as below: [code lang=&quot;python&quot;] Traceback (most recent call last): File &quot;bq-my-system-backup-2007_08_12.py&quot;, line 357, in ? main() File &quot;bq-my-system-backup-2007_08_12.py&quot;, line 303, in main updateLockFile() File &quot;bq-my-system-backup-2007_08_12.py&quot;, line 164, in updateLockFile lock_data[&#039;process_list&#039;] = getProcessList() File &quot;bq-my-system-backup-2007_08_12.py&quot;, line 249, in getProcessList children = getRecursiveProcessChildren(parent_pid=script_pid) File &quot;bq-my-system-backup-2007_08_12.py&quot;, line 236, in getRecursiveProcessChildren children = getProcessChildren(parent_pid) File &quot;bq-my-system-backup-2007_08_12.py&quot;, line 225, in getProcessChildren child_pid = int(child_info_list[0]) ValueError: invalid literal for int(): ps: [/code]</description> <content:encoded><![CDATA[<p>This version does not work on my server as it produced many errors as below:</p><pre class="brush: python; title: ; notranslate">
Traceback (most recent call last):
  File "bq-my-system-backup-2007_08_12.py", line 357, in ?
    main()
  File "bq-my-system-backup-2007_08_12.py", line 303, in main
    updateLockFile()
  File "bq-my-system-backup-2007_08_12.py", line 164, in updateLockFile
    lock_data['process_list'] = getProcessList()
  File "bq-my-system-backup-2007_08_12.py", line 249, in getProcessList
    children = getRecursiveProcessChildren(parent_pid=script_pid)
  File "bq-my-system-backup-2007_08_12.py", line 236, in getRecursiveProcessChildren
    children = getProcessChildren(parent_pid)
  File "bq-my-system-backup-2007_08_12.py", line 225, in getProcessChildren
    child_pid = int(child_info_list[0])
ValueError: invalid literal for int(): ps:
</pre>]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/10 queries in 0.004 seconds using apc
Object Caching 486/490 objects using apc

Served from: kevin.deldycke.com @ 2012-02-08 23:27:09 -->
