Comments (4)
I think yeah, that would be a good idea - especially if it were configurable.
from cpm.
I took a stab at your proposed inactivity timeout @jspenguin.
Try setting InactiveTimeout 5
in your ~/.cpmrc and let me know what you think.
from cpm.
It doesn't seem to work. I think the ptrace protection might be interfering with the alarm, because when I run it under strace, it spits out an error about not being able to enable ptrace protection, and then the timeout works.
Even if I run as root without strace, it does not work.
from cpm.
hm, this is possible. I am writing this on a platform where ptrace protection has been disabled due to lack of support in the kernel since most newer distro kernels no longer support tracing self by default. Which also leaves me rather unable to debug this. As you can see from the commits, I've implemented the timeout as a simple alarm() signal reset by user input. Perhaps it's the ptracing child, can you check what is interfering with the delivery of this signal?
from cpm.
Related Issues (20)
- cpm: initial curses screen setup not correct HOT 1
- cpm aborts on start: Can't attach to parent! HOT 5
- cpm doesn't ask for gpg key password, but: gpgme error / bad passphrase HOT 3
- Unable to specify encryption key HOT 3
- Draw the console UI with something other than CDK.
- Trusting keys from CPM
- Automating nonsense in the cpmgit gitlog HOT 1
- security check failure HOT 3
- "Cannot drop root privileges." on debian/jessie/i386
- cpm doesn't reset terminal on start
- libncursesw5-dev missing as install dependency
- make install doesn't create LC_MESSAGES
- feature request: open password databases without local trust HOT 3
- Can't run as non-root user HOT 1
- execl() in clear_screen needs a NULL terminator. HOT 1
- Cannot modify database: "You did not specify any encryption keys. " HOT 2
- Please document how to decrypt the file with gpg HOT 1
- Problems with opening and closing cpm in Debian 10 buster HOT 1
- The key you entered could not be validated.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpm.