Assume: 1) Multi-cpu environment 2) Process that gets interrupted, is the same process that executes the interrupt handler, so I guess technically nothing gets interrupted except what the process was doing before, but it is still executing as it is executing the handler. 3) There is no top or bottom half, when an interrupt takes place the handler is invoked, executes, then return from interrupt, simple as that.
Why would sleeping the handler (puts in sleep queue, context switch to next runnable process) be a bad idea?
I would really like to install 2 or 3 PHP handler modules (suEXEC, FastCGI, etc) on a single server and assign which module should be used per virtual host or domain or whatever.
I'm trying to create a signal handler thread to handle SIGALRM signals. The main thread calls the following function before creating any other threads
Code:
pthread_t Timer::Init(long _clock_interval_musec) { // Set interval. clock_interval = _clock_interval_musec; // This is called while in a single threaded environment.
[code]....
clock_interval is 50.
Is the timer not firing? Did I not set my interval correctly? Did I not proper block the signals ensuring the that the default handler would not take care of them?
I'd like to propose the following program, which I might write if nothing like this already exists. It would be similar to the "script" program in that it will allocate a new pty/tty pair and start a new session. But unlike the "script" program, it will provide a means to have BOTH the normal terminal session going AND a script or input source to provide input. It could be used, for example, to pre-start programs inside the pty session, and at the end, let the controlling tty it was started in fully interact with it (something that can't happen if it was started with input piped from the script).
My design would allow running a control script right from the beginning, or at any later time. The control script can see output from the session, filter that output for the controlling tty to see, provide input, maybe even filter the controlling tty input, too. When the script ends, the session can remain for regular interaction. Also, an environment variable will be set in the session to allow programs inside the session to provide similar controls, such as feeding input. That environment variable might be a local port number to connect to, with an access key or encryption key, to provide input and/or control commands.
I have several uses for this. Many of those uses could be done using other tools, but not all the uses would hit the same tools. But by doing it all in a program like this, I see a great many of my uses all solved in a single project, even if it isn't the most elegant (but I see solving many problems with one solution as being its own kind of elegant).
I am looking for a good audio session handler. On ubuntu I have seen Ladish but it is a preview release. Is there a good audio session handler for openSUSE. http://ladish.org/wiki/demovideo
I recently installed openSUSE 11.3 (4 times, I think, which gives me always a new name for the "server" and in my terminal screen I continuously get this error: Message from syslcgd@linux-i4cz at Oct 12 06:21:57 ... kernel:[2866.05E384] do_IRQ: 0.91 No irq handler for vector (irq -1) the number after kernel: varies I then hit a few time son the [I]enter[I] key and then I get my linux prompt.
I want to define a simple error handler for a script. Image a script that does a few commands:
Code:
ls . cd .. touch ...
whatever, it doesn't matter. I want to define one error handler for the script, so if any of the steps error than the script is terminated and the error handler is run. I see the -e option to quit on errors, but I want a GOTO on errors.
Is it possible to connect a signal handler to a variable?So when the variable changes the signal handler is called.I have a vector containing strings which i want to parse when there are one or more available strings in the vector
Basically I'm intending to write serial RX signal handler.Application receives defined packages of data over serial which contains header and payload. Handler should analyse incoming stream and upon detection of header (header is 6B in length) switches to receive payload of length defined in header, then after receiving full message packs it and sends to application for handling.Problem I'm facing is that at random moments in signal I receive errors that "Resource temporarily unavailable" while reading from ttyOx device and I see that sometimes I miss incoming data.Also is it possible that if while I'm handling signal one more signal arrives and it is started to be handled parallel? If it is, what are the ways to prevent it? So I would be sure that no more signals will fire on same peripheral until I will finish handling what I have on my hands now.
Serial open and init: Code: Select allint open_port(int port_nr) { int fd; /* File descriptor for the port */ switch (port_nr) { case 1: fd = open("/dev/ttyO1", O_RDWR | O_NOCTTY | O_NDELAY); break;
I have written a Linux kernel module (in Linux 2.4, Red Hat 9) which does the followings: It takes srcIP, sourceport, destIP, destport and loadvalue as command line arguments. If configured load value is greater than 1, it creates different channels (i.e. No of UDP channels created equals to configured load value), assign different source port and destination port to different channels and send UDP datagram in different channels. Say for example the configured parameters are as follows srcIP=10.17.17.43 destIP= 10.17.17.44 sourceport=10000 destport= 20000 loadvalue=2.
Then it creates two UDP different channels and transmits UDP packets (in every 20 milliseconds) to destination IP address (i.e., 10.17.17.44) with source port 10000, destination port 20000 in one channel and source port 10002, destination port 20000 in another channel. When I configure to pass ?loadvalue=500? and run the module, I get the below kernel panic message in system log file (i.e., var/log/messages) 0>Kernel panic: Aiee, killing interrupt handler! In interrupt handler - not syncing. Running the same linux kernel module ,in 1000 loadvalue, I get this message, eth0: Out-of-sync dirty pointer, 49937 vs. 49954 in text console. I am unable to catch the root cause of these problems and how will I solve these?
I don't have wine installed. But I use teamviewer [URL] to remote support my friends. Teamviewer provide an "linux version" using wine wrapper. Every time I run it, some mime types such as .jpg, .wmv, .txt, .ini, v.v... was set to be handle by a "A Wine application". So, nothing happen when I open those file, I have to reset their handler to proper linux application.
1. How can I completely remove those "A wine application" handler? Is there a tool, or a settings applet in gnome that allow me to do that. Currently, I have to find those files in nautilus, right click and change the open with settings, that's frustrated.
2. Can I lock mime type handling settings from being changed by some application? Or even lock it from any changed at all? I don't mind remove the write permission from some settings file, I won't likely to change my current mime type handling settings in near future.
locking mutex (phtread_t type) in a signal handler function (installed by function signal()) for Linux. It seems that if the mutex has been previously locked by another thread outside the signal handler function and then the signal handler function tries to lock it, the whole process hangs.
I'm new to Unix and every signal handler algorithm I've seen is more or less a copy of what I'm trying to do.[URL] designing a signal handler with sigwait in UNIX?
I have just installed the play command in my terminal and when I try to play an mp3 i get the error " no handler for file extension 'mp3' ".Am I required to create a default action that happens when an mp3 file is called, like opening and audio player, or do I just need to install some specific drivers?
I am using Debian linux. I have 100 timers running. If a timer expired which will generate a signal and it was mapped to a same function handler. All the timers are mapped to one function handler. The problem is if the timer expires one at a time, the function handler called at a time. But if the 2 timers expires at a time, the function handler is called one time only instead 2 times. Is it possible to invoke the function handler as many times based on timer expirary happens simultaneoulsy?
I have a Pinnacle PCTV HD pro usb stick, and having unsuccessfully tried MythTV and every other DVB player in the repository, I was successful in getting Totem/Movie Player to load the channels (w_scan -ft -c US -k seemed to work and saved in the gstreamer folder...I think, lol!), but it won't let me play any of the channels but gives me a "No URI handler for DVB" message! What is a URI handler, and how do I resolve this?
I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.
my computer doesn't get the internet, so I've tried to download what earlier threads write as the solution on another computer, but the other computer isn't linux, and it says that it doesn't recognize the file extension. Is there any way to download the "ubuntu-restricted-extras" thingy without it immediately trying to install?
I receive the following kernel trace message during the boot process after a fresh install of CentOS 5.2 x86_64. The trace occurs during the initialization of HALD in the boot process. From what I can tell things seem to be functioning properly, but I still would like to get rid of the noise for peace of mind.
Below is the pertinent information to date.
/var/log/messages:
With regards to hardware and operating system; all blades are identical with the exception of the amount of physical memory. The installation is done via kickstart against a frozen CentOS 5.2 x86_64 repository.
Some googling has revealed or suggested that it may be related to a keyboard ps/2 interrupt. I have tried booting with noapic and received the same results.
Below are the contents of the interrupt table after each boot.
/proc/interrupts booting apic:
My next step is to install Redhat 5.3 x86_64 on the next blade I free up to see if I receive the same error.
After a fresh install of Fedora 12 I'm delivered to the image on the attachment. Well aside from not being able to see icons on the left, or go to the any terminal and not seeing anything and be forced to blind type and hope for the best there are some other issues. Enabling panel transparency shows video artefacts on the panel.nouveau doesn't enable 3D(I use a NVidia GeForce 9600 GT 512MB and my monitor is a ACER LCD X223W)) kind and point me to resources about the nouveau driver and how to configure it so it starts to work?
When I start the tightvncserver (vncserver -geometry 1600x1024 :1) and then connect to it with a vncviewer (tightvnc 1.3.0 on Win7 or vncviewer on 9.10) and then start a terminal (gnome-terminal or xterm) the m key it opens the envelope tab on the panel. The 's' key opens the shutdown applet.This did not happen on 9.10, or earlier
Someone on the forums had me uninstall pulseaudio to get pSX working, and now I don't have a volume control icon on the panel and when choosing to add stuff to the panel it isn't available.I re-installed pulseaudio through the package manager, but I have a feeling it didn't install everything that uninstalled with it.
I have had this problem with all installations of Maverick Meerkat. Moving the default clock from the upper panel to the lower panel makes it bahave strangely. When clicked on, it now appears in the middle of the screen (sometimes even higher depending on resolution). This never happened prior to Maverick Meerkat.
So I just updated my IdeaPad to Natty and played around with Unity. The performane was absolutely unbearable so I installed Unity2D from the software center. Now when I start the session everything seems to be fine at first. Whenever I move the mouse over the panel though it seems to switch to my old gnome-panel from the "Classic" session (with some missing icons). When I move the mouse over that panel again it switches back to the Unity panel style. What is going on? Can I fix this somehow? I will have to use the classic session until I get a working consistent behavior