Search:

Type: Posts; User: sebasura

Search: Search took 0.01 seconds.

  1. Creating a syscall that checks for processes' status (among other things)

    EDIT: I'm working on kubuntu 16.04LTS, and I'm using the kernel "linux-3.16.43.tar.xz" from The Linux Kernel Archives
    Hi, I am making a system call that loops through every process with a certain...
  2. Thanks for the corrections :D. About the unused...

    Thanks for the corrections :D. About the unused values, comment saying increase and stuff like that, It's because I fixed some errors and I changed the logic in a few ways, and the comment stayed as...
  3. GitHub - sebasura/sistope...

    GitHub - sebasura/sistope
  4. I get your point and I totally agree. The thing...

    I get your point and I totally agree. The thing is... when I send the signal 16 and 17, the program doesn't work.
    Those are the values that my blind problem writer told me to use, so I'm kind of in...
  5. This is for an assignment and they gave us a...

    This is for an assignment and they gave us a table with signal names and numbers. The table says SIGINT: 2, SIGUSR1: 16, SIGUSR2: 17.
    The user should enter those values in console like this:...
  6. Lol, I'm sure it is, but it works so far. I don't...

    Lol, I'm sure it is, but it works so far. I don't know how to resume my code, it's pretty long for just making a point about signals, but here it goes... a short and probably flawed version:


    ...
  7. I solved it using sigaction() signal(2,...

    I solved it using sigaction()

    signal(2, handler);
    sigaction(2, 1);

    does the trick.
  8. How to stop reading from keyboard once a signal is handled?

    I'm writing a program where the SIGINT signal is handled the first time it is sent, but set to default after that. So, for example, I have this:


    static volatile int stop_terminating = 1;

    void...
  9. Thank you so much! This helped a lot!

    Thank you so much! This helped a lot!
  10. How to make children to wait for infinite signals from parent?

    Hi, I wrote a program where the parent creates many children with fork(). I then made all of them to pause(), cause I needed to send them the signal 15 to kill them. Once I sent them that signal, in...
  11. Replies
    3
    Views
    4,075

    I don't actually know, I assumed they are,...

    I don't actually know, I assumed they are, otherwise my teacher would have told me.
    What's the practical difference for this? :0
  12. Replies
    3
    Views
    4,075

    How to create a mini-benchmarking program?

    I have an assignment where I need to make a benchmark program to test the performance of any processor with two sorting algorithms (an iterative one and a recursive one). The thing is my teacher told...
Results 1 to 12 of 14