🐞️ Bugfix: Interruptible wait #5

Open
opened 2023-06-09 08:50:03 +01:00 by deavmi · 6 comments
Owner

What is this?

I want to be able to handle the case where the select() system call inside of wait() returns with -1 indicating an error but is due to a signal that has been received (we can detect this via the errno() function).

  • Implement
  • Test
    • Test with signal
    • Update other tests to catch this
  • Document
## What is this? I want to be able to handle the case where the `select()` system call inside of `wait()` returns with `-1` indicating an error but is due to a signal that has been received (we can detect this via the `errno()` function). - [x] Implement - [ ] Test - [ ] Test with signal - [ ] Update other tests to catch this - [x] Document
deavmi self-assigned this 2023-06-09 08:50:27 +01:00
deavmi added the
bug
enhancement
labels 2023-06-09 08:50:34 +01:00
deavmi added reference feature/interruptible 2023-06-09 08:50:36 +01:00
deavmi added the due date 2023-06-11 2023-06-09 08:50:45 +01:00
deavmi changed title from Interruptible wait to 🐞️ Bugfix: Interruptible wait 2023-06-09 08:51:14 +01:00
deavmi started working 2023-06-09 09:39:21 +01:00
Author
Owner

Going to test this later, I will have to write some unit test that generates a signal to systematically test this.

Going to test this later, I will have to write some unit test that generates a signal to systematically test this.
deavmi stopped working 2023-06-09 11:24:01 +01:00
1 hour 44 minutes
deavmi started working 2023-06-10 13:38:29 +01:00
deavmi stopped working 2023-06-10 15:05:58 +01:00
1 hour 27 minutes
deavmi started working 2023-06-12 07:29:04 +01:00
Author
Owner

Going to take this for a test in the birchwood IRC project and see how well it fares.

I did manually test it and it worked, I will write a unit test soon and see where else, if anywhere, I need to do this.

Going to take this for a test in the birchwood IRC project and see how well it fares. I did manually test it and it worked, I will write a unit test soon and see where else, if anywhere, I need to do this.
deavmi stopped working 2023-06-12 20:04:08 +01:00
12 hours 35 minutes
deavmi started working 2023-06-13 19:24:31 +01:00
deavmi stopped working 2023-06-13 19:24:34 +01:00
3 seconds
deavmi modified the due date from 2023-06-11 to 2023-06-30 2023-06-13 19:24:40 +01:00
deavmi started working 2023-06-13 19:24:43 +01:00
Author
Owner

Todo

Honestly, almost done. Just working on cleaning it up - and I want to add testing for other things:

  • Timeout testing?
  • InterruptedException testing
    • We need to send a signal to the thread ID to interrupt it and test this automatically
## Todo Honestly, almost done. Just working on cleaning it up - and I want to add testing for other things: - [x] Timeout testing? - [ ] InterruptedException testing * We need to send a signal to the thread ID to interrupt it and test this automatically
deavmi stopped working 2023-06-13 19:25:36 +01:00
53 seconds
deavmi started working 2023-06-14 14:35:03 +01:00
Author
Owner

It is implemented, awaiting unittest-based testing

It is implemented, awaiting unittest-based testing
deavmi stopped working 2023-06-14 14:35:37 +01:00
34 seconds
deavmi started working 2023-06-14 14:46:36 +01:00
Author
Owner

Todo

Honestly, almost done. Just working on cleaning it up - and I want to add testing for other things:

  • Timeout testing?
  • InterruptedException testing
    • We need to send a signal to the thread ID to interrupt it and test this automatically

Timeout testing is already done

> ## Todo > > Honestly, almost done. Just working on cleaning it up - and I want to add testing for other things: > > - [ ] Timeout testing? > - [ ] InterruptedException testing > * We need to send a signal to the thread ID to interrupt it and test this automatically > > Timeout testing is already done ✅
Author
Owner

What is this?

I want to be able to handle the case where the select() system call inside of wait() returns with -1 indicating an error but is due to a signal that has been received (we can detect this via the errno() function).

  • Implement
  • Test
    • Test with signal
    • Update other tests to catch this
  • Document

Documentation is now done

> ## What is this? > > I want to be able to handle the case where the `select()` system call inside of `wait()` returns with `-1` indicating an error but is due to a signal that has been received (we can detect this via the `errno()` function). > > - [x] Implement > - [ ] Test > - [ ] Test with signal > - [ ] Update other tests to catch this > - [ ] Document Documentation is now done
deavmi stopped working 2023-06-14 14:54:09 +01:00
7 minutes 33 seconds
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 15 hours 56 minutes
deavmi
15 hours 56 minutes
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

2023-06-30

Dependencies

No dependencies set.

Reference: deavmi/libsnooze#5
No description provided.