Hi david.
The version is 1.0.0-beta3+svn (default@806a14f93060:20110830:053258)
I recompiled and the backtrace is the following:
-----------------------------------------------------------------------------------------------------
Thread 2 killed on uncaught exception Unix.Unix_error(3, "select", "")
Raised at file "tools/tutils.ml", line 167, characters 39-40
Called from file "thread.ml", line 38, characters 8-14
--------------------------------------------------------------------------------------------------
the relevant part of the log is:

---------------------------------------------------------------------------------------------
2011/09/13 17:55:29 [main:3] Shutdown started!
2011/09/13 17:55:29 [main:3] Waiting for threads to terminate...
2011/09/13 17:55:29 [threads:1] Thread "non-blocking queue #1" aborts with
exception Bad file descriptor in select()!
2011/09/13 17:55:29 [threads:3] Raised by primitive operation at file "",
line 0, characters 0-0
2011/09/13 17:55:29 [teste:3] Closing connection...
-----------------------------------------------------------------------------------------------

My shutdown function is this:
----------------------------------------------------------------------------------------------------------------------------------
    def finish(str)

        shutdown()
        "ok!"
    end

    server.register(namespace="ns",usage="off",description="turn off the
proccess","off",finish);
-----------------------------------------------------------------------------------------------------------------------------
And i call it by a socket configured like this:

-----------------------------------------------------------------------------------------------------------
pathToSocket="/home/fabio/workspace/liquidsoap/socket_phpTest";
set("server.socket",true);
set("server.socket.path",pathToSocket);
set("server.socket.permissions",511)
---------------------------------------------------------------------------------------------------

Em 14 de setembro de 2011 06:28, David Baelde <[email protected]>escreveu:

> Hi Fabio,
>
> Thanks for reporting, this is indeed a bug. As you suspected, the
> exception is the reason why liquidsoap can't shutdown cleanly. Does
> the exception occur precisely when you shutdown? Could you provide us
> with a backtrace? (Reconfigure with --enable-debugging and compile.)
> Which version is it?
>
> It's probably something that can be fixed quickly once we can
> reproduce. I tried the following but it worked smoothly:
>
> $ liquidsoap -t 'set("server.telnet.port",1111)
> server.register("shutdown",fun(_)->begin shutdown(); "DONE" end)
> output.dummy(blank())'
> ...
> <issuing command using telnet>
> 2011/09/14 10:44:16 [clock.wallclock_main:3] Streaming loop starts,
> synchronized with wallclock.
> 2011/09/14 10:44:20 [server:3] New client: localhost
> 2011/09/14 10:44:22 [main:3] Shutdown started!
> 2011/09/14 10:44:22 [main:3] Waiting for threads to terminate...
> 2011/09/14 10:44:22 [clock.wallclock_main:3] Streaming loop stopped.
> 2011/09/14 10:44:22 [threads:3] Thread "wallclock_main" terminated (0
> remaining).
> 2011/09/14 10:44:22 [main:3] Cleaning downloaded files...
> 2011/09/14 10:44:22 >>> LOG END
>
> Cheers,
> --
> David
>
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to