<div class="gmail_quote">ahh, that kinda makes sense - although I am not expecting my bash script to require user input.<br>
<br>
Thanks for the pointer, I&#39;ll do some more digging<br><br>btw - what&#39;s the convention in here? top or bottom post? does it matter?<br><br>On 28 September 2011 20:03, Robert Jordan [via Mono] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=3854598&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">

        On &lt;a href=&quot;tel:27.09.2011%2015&quot; value=&quot;+12709201115&quot; target=&quot;_blank&quot;&gt;27.09.2011 15</a>:28, DJL wrote:
<br>&gt; Hi everyone, first post on here.
<br>&gt;
<br>&gt; I&#39;m getting a bizzarre behaviour and I&#39;m hoping you guys can help.
<br>&gt; Sorry if this is the wrong place to post this.
<br>&gt;
<br>&gt; Short version:
<br>&gt; Calling Socket.Accept() is causing my application to freeze. A commandline
<br>&gt; &quot;fg&quot; resumes it.
<br><br></div>It&#39;s not your application that freezes. You seem to be invoking
<br>bash and some tool that sends SIGTSTP to itself. SIGTSTP is used
<br>when an application/command requires a terminal for user input,
<br>e.g. password input.
<br><br>Robert
<br><div><div></div><div class="h5"><div><div class='shrinkable-quote'><br>&gt;
<br>&gt; Long version:
<br>&gt; Ok so I have a multi-threaded, Multi DLL  application.
<br>&gt; Several of these DLLs are calling Socket.Accept() without issue.
<br>&gt; However the newest of these is causing the application to stop every time.
<br>&gt; The commandline shows &quot;[1]+  Stopped&quot; and no other output.
<br>&gt; typing &quot;fg&quot; causes the application to continue as if nothing happened.
<br>&gt;
<br>&gt; Here is an excerpt from my code:
<br>&gt;
<br>&gt; /
<br>&gt; Log(9, &quot;pcsBash.Start()&quot;);
<br>&gt; pcsBash.Start();
<br>&gt; Log(9, &quot;&lt;&quot;);
<br>&gt; stStdIn = pcsBash.StandardInput.BaseStream;
<br>&gt; stStdErr = pcsBash.StandardOutput.BaseStream;
<br>&gt; Log(9, &quot;Accept()&quot;);
<br>&gt; sktStdOut = sktStdOutListen.Accept();
<br>&gt; Log(9, &quot;&lt;&quot;);
<br>&gt; stStdOut = new System.Net.Sockets.NetworkStream(sktStdOut, true);
<br>&gt; Log(9, &quot;&lt;&quot;);/
<br>&gt;
<br>&gt;
<br>&gt; Looking in the log when it stops (before typing fg) the last entry is
<br>&gt; &quot;Accept()&quot;
<br>&gt; (And yes the log is being flushed after each line).
<br>&gt;
<br>&gt; It is always in this same place, which leads me to suspect it is NOT one of
<br>&gt; the other threads causing this.
<br>&gt;
<br>&gt; Anyone have any ideas what could possibly cause this?
<br>&gt;
<br>&gt; Incidentally - the same code running on Windows in Microsoft&#39;s .Net does not
<br>&gt; do anything out of the ordinary - although I imagine if it did the symptoms
<br>&gt; might be quite different?
<br>&gt;
<br>&gt; Once again, thanks for any help you can give on this baffling issue
<br>&gt;
<br>&gt; System info:
<br>&gt;
<br>&gt; /#mono --version
<br>&gt; Mono JIT compiler version 2.8.2 (tarball Wed Feb 23 09:31:21 UTC 2011)
<br>&gt; Copyright (C) 2002-2010 Novell, Inc and Contributors. <a href="http://www.mono-project.com" target="_blank" rel="nofollow" link="external">www.mono-project.com</a>
<br>&gt;          TLS:           __thread
<br>&gt;          SIGSEGV:       altstack
<br>&gt;          Notifications: epoll
<br>&gt;          Architecture:  amd64
<br>&gt;          Disabled:      none
<br>&gt;          Misc:          debugger softdebug
<br>&gt;          LLVM:          supported, not enabled.
<br>&gt;          GC:            Included Boehm (with typed GC and Parallel Mark)
<br>&gt; #uname -a
<br>&gt; Linux svn 2.6.37.6-0.7-desktop #1 SMP PREEMPT 2011-07-21 02:17:24 +0200
<br>&gt; x86_64 x86_64 x86_64 GNU/Linux
<br>&gt; /
<br>&gt;
<br>&gt;
<br>&gt; --
<br>&gt; View this message in context: <a href="http://mono.1490590.n4.nabble.com/Socket-Accept-causes-1-Stopped-tp3847351p3847351.html" rel="nofollow" link="external" target="_blank">http://mono.1490590.n4.nabble.com/Socket-Accept-causes-1-Stopped-tp3847351p3847351.html</a></div>
&gt; Sent from the Mono - Dev mailing list archive at Nabble.com.
</div><br><br>_______________________________________________
<br>Mono-devel-list mailing list
<br></div></div><a href="http://user/SendEmail.jtp?type=node&amp;node=3852537&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><div class="im"><a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" rel="nofollow" link="external" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
        
        <br>
        <br>
        </div><hr color="#cccccc" noshade size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://mono.1490590.n4.nabble.com/Socket-Accept-causes-1-Stopped-tp3847351p3852537.html" target="_blank" rel="nofollow" link="external">http://mono.1490590.n4.nabble.com/Socket-Accept-causes-1-Stopped-tp3847351p3852537.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                
                To unsubscribe from Socket.Accept() causes [1]+  Stopped, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.
        </div></blockquote></div><br><br clear="all"><br>-- <br>*DJL - XWAX And Vinyl DJ <a href="http://www.dj-djl.com" target="_blank" rel="nofollow" link="external">http://www.dj-djl.com</a><br>Wednesday 8-10PM CH1 <a href="http://www.housefreaks.co.uk" target="_blank" rel="nofollow" link="external">http://www.housefreaks.co.uk</a><br>


        <div class="signature weak-color">DJL's Deep Decks live every Wednesday night from 8PM* on www.housefreaks.co.uk Channel1 &nbsp;- Deep/Tech & Minimal House
<br/><br/><a href="http://www.dj-djl.com" target="_top" rel="nofollow" link="external">http://www.dj-djl.com</a><br/><br/>*UK Time</div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mono.1490590.n4.nabble.com/Socket-Accept-causes-1-Stopped-tp3847351p3854598.html">Re: Socket.Accept() causes [1]+ Stopped</a><br/>
Sent from the <a href="http://mono.1490590.n4.nabble.com/Mono-Dev-f1517221.html">Mono - Dev mailing list archive</a> at Nabble.com.<br/>