Comment 31 for bug 1360200

Revision history for this message
Brett Peckinpaugh (bp10) wrote :

@Kovid

1) Without fork(): No crash, no start at all. A few command line errors with it.

calibre-debug -c "from calibre.gui2.main import main; import os, sys; os.setsid(); main()"
Traceback (most recent call last):
  File "site.py", line 51, in main
  File "site-packages/calibre/debug.py", line 228, in main
  File "<string>", line 1, in <module>
OSError: [Errno 1] Operation not permitted

2) Without setsid(), this one crashed. Showed the splash screen and initializing interface and died.

Starting up...
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
*** Error in `/opt/calibre/bin/calibre-debug': double free or corruption (fasttop): 0x00007f71ec0008c0 ***