[Qt-interest] unable to run application in background
linux newbie
linux.newbie79 at gmail.com
Thu Nov 19 11:02:30 CET 2009
Thanks for your reply.
In this case, the server application should not be running in the
background as it takes control of tty1. Is my understanding correct?
My experiment is to run qt server application in the background and
create 3 or 4 seperate qt client applications. If I cant run the
server application as background process, how can I invoke the client?
Please help me out.
Thanks
On Thu, Nov 19, 2009 at 6:16 PM, Thiago Macieira <thiago at kde.org> wrote:
> Em Quinta-feira 19. Novembro 2009, às 05.50.33, linux newbie escreveu:
>> Hi,
>>
>> I tested some of the example application in our ARM based embedded
>> platform and it is working, but when I tried to run it in the
>> "background"(by adding '&' at the end of command), system freezes.
>>
>> When I gave the following command
>> ./Qt_test -qws &
>> system freezes.
>>
>> Our console is running at ttyS0(serial port) and when I gave 'ps'
>> command, it shows the
>> 891 root 18536 T ./Qt_test -qws
>>
>> It seems that Qt process is terminated and I couldnt kill that process
>> using kill command.
>>
>> Can anyone share their thoughts in this regard?
>
> T means "sTopped", meaning the application was stopped by an external reason.
> It happens when the application is being traced (another reason for T), such
> as by strace or gdb, or when it has been stopped by a signal.
>
> The signals that can stop an app are SIGSTOP (cannot be caught), SIGTTOU and
> SIGTTIN, indicating the application tried to do output to the terminal or do
> input.
>
> For example:
> $ emacs -nw &
> [1] 27704
> $
> [1] + suspended (tty output) emacs -nw
> $ ps 27704
> PID TTY STAT TIME COMMAND
> 27704 pts/9 TN 0:00 emacs -nw
>
> As you can see, an application tried to use the terminal exclusively, but
> since it was in the background, it couldn't. It got suspended until I move it
> to the foreground.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Senior Product Manager - Nokia, Qt Development Frameworks
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
More information about the Qt-interest-old
mailing list