Sponsored Content
Full Discussion: Signal Problem
Top Forums Programming Signal Problem Post 302092539 by jacques83 on Tuesday 10th of October 2006 02:31:29 PM
Old 10-10-2006
Hi,

I am not trying to pass any argument to my quit_procedure method...In that case, what do i need to do?
 

10 More Discussions You Might Find Interesting

1. Programming

[Problem] raise a signal in FreeBSD

I am trying to send a SIGUSR1 to a set of process. Please tell me how to do. I've tried the system call raise(int sig) but it just raise a signal of to the 'current process.' My program is about a network chat server. When a client connects in, The main process will fork a new process... (1 Reply)
Discussion started by: Namely
1 Replies

2. UNIX for Advanced & Expert Users

I have a problem using signal SIGUSR2

hi I have created a application which uses SIGUSR2. It send this signal to server and waits for signal SIGUSR2 from server after server performing some operation server sends SIGUSR2 back to the application. The application then quits. This works fine which ran from terminal , but when I... (3 Replies)
Discussion started by: khan_069
3 Replies

3. Programming

problem with signal()

#include<signal.h> void suicide(); main() { printf("use CTRL \\ for exiting \n"); //signal(SIGINT,SIG_DFL); signal(SIGQUIT,suicide); for (;;); } void suicide() { printf("hello here you r in the suicide code "); } i was just starting with signals .. and tried this ,, but in the... (10 Replies)
Discussion started by: narendra.pant
10 Replies

4. Programming

problem in SIGSEGV signal handling

i wrote handler for sigsegv such that i can allocate memory for a variable to which sigsegv generated for illlegal acces of memory. my code is #include <signal.h> #include<stdio.h> #include<stdlib.h> #include<string.h> char *j; void segv_handler(int dummy) { j=(char *)malloc(10); ... (4 Replies)
Discussion started by: pavan6754
4 Replies

5. Programming

problem in reforking and signal handling

hi friends i have a problem in signal handling ... let me explain my problem clearly.. i have four process .. main process forks two child process and each child process again forks another new process respectively... the problem is whenever i kill the child process it is reforking and the... (2 Replies)
Discussion started by: senvenugopal
2 Replies

6. Shell Programming and Scripting

Tricky little problem, send signal to other machine without user

Hi everyone! I want to be able to send a signal to another machine on the same network, and have it trigger a script on that machine. Here's the reason why I can't just ssh: I don't have a username on that machine, but there is a user that is always logged on that I can do stuff on. So, I want... (5 Replies)
Discussion started by: declannalced
5 Replies

7. Programming

UNIX signal problem

Hi all, Sorry about the title,at first i decided to ask a problem about the signal mechanism,however,i'm now figured it out.Sorry to forget modify the title:wall:.I had a small problem that if i use the code which is commented,the code would get a segment fault,while the above code NOT.what's... (4 Replies)
Discussion started by: homeboy
4 Replies

8. Programming

problem in doing coding of signal handler

i m unble to execute code of signal handler using a) Wait b) Waitpid (1 Reply)
Discussion started by: madhura
1 Replies

9. Programming

Losing signal problem

I'm newbie in UNIX programming, I have a problem with signals. I'm writing multithread program, where threads can die at any moment. When thread dies it generates signal SIGUSR1 to main thread and then thread dies. Main thread gets a signal and waits for thread dead. I wrote program like this: ... (5 Replies)
Discussion started by: DendyGamer
5 Replies

10. Linux

Problem with dovecot (Killed with signal 15)

hey, i have been facing a very fatel error with dovecot.. i am getting this error in my dovecot.log file dovecot: Feb 13 15:21:02 Fatal: chdir(/var/mail/folders/user1) failed with uid 1001: Permission denied dovecot: Feb 13 15:21:02 Error: child 18732 (imap) returned error 89 dovecot: Feb... (3 Replies)
Discussion started by: htshshrm2
3 Replies
DBIx::Class::Manual::Reading(3) 			User Contributed Perl Documentation			   DBIx::Class::Manual::Reading(3)

NAME
DBIx::Class::Manual::Reading - How to read and write DBIx::Class POD. DESCRIPTION
This doc should help users to understand how the examples and documentation found in the DBIx::Class distribution can be interpreted. Writers of DBIx::Class POD should also check here to make sure their additions are consistent with the rest of the documentation. METHODS
Methods should be documented in the files which also contain the code for the method, or that file should be hidden from PAUSE completely, in which case the methods are documented in the file which loads it. Methods may also be documented and referred to in files representing the major objects or components on which they can be called. For example, DBIx::Class::Relationship documents the methods actually coded in the helper relationship classes like DBIx::Class::Relationship::BelongsTo. The BelongsTo file itself is hidden from PAUSE as it has no documentation. The accessors created by relationships should be mentioned in DBIx::Class::Row, the major object that they will be called on. Method documentation o Each method starts with a "head2" statement of its name. Just the plain method name, not an example of how to call it, or a link. This is to ensure easy linking to method documentation from other POD. o The header is followed by a two-item list. This contains a description of the arguments the method is expected to take, and an indication of what the method returns. The first item provides a list of all possible values for the arguments of the method in order, separated by ", ", preceded by the text "Arguments: " Example (for the belongs_to relationship): =item Arguments: $accessor_name, $related_class, $fk_column|\%cond|@cond?, \%attr? The following possible argument sigils can be shown: o $var - A scalar (string or numeric) variable. o \%var - A variable containing reference to a hash. o @var - A variable containing a reference to an array. o $var - A variable containing a reference to a scalar variable. o %var - A hashref variable (list of key/value pairs) - rarely used in DBIx::Class. Reading an argument as a hash variable will consume all subsequent method arguments, use with caution. o @var - An array variable (list of values). Reading an argument as a array variable will consume all subsequent method arguments, use with caution. o $obj - Reference to the source class or object definition All arguments and return values should provide a link to the object's class documentation or definition, even if it's the same class as the current documentation. For example: ## Correct, if stated within DBIx::Class::ResultSet L<$resultset|/new> ## Correct, if stated outside DBIx::Class::ResultSet L<$resultset|DBIx::Class::ResultSet> o ? - Optional, should be placed after the argument type and name. ## Correct \%myhashref|@myarrayref? ## Wrong \%myhashref?|@myarrayref Applies to the entire argument. Optional arguments can be left out of method calls, unless the caller needs to pass in any of the following arguments. In which case the caller should pass "undef" in place of the missing argument. o | - Alternate argument content types. At least one of these must be supplied unless the argument is also marked optional. The second item starts with the text "Return Value:". The remainder of the line is either the text "not defined" or a variable with a descriptive name. ## Good examples =item Return Value: not defined =item Return Value: L<$schema|DBIx::Class::Schema> =item Return Value: $classname ## Bad examples =item Return Value: The names "not defined" means the method does not deliberately return a value, and the caller should not use or rely on anything it does return. (Perl functions always return something, usually the result of the last code statement, if there is no explicit return statement.) This is different than specifying "undef", which means that it explicitly returns undef, though usually this is used an alternate return (like "$obj | undef"). o The argument/return list is followed by a single paragraph describing what the method does. o The description paragraph is followed by another list. Each item in the list explains one of the possible argument/type combinations. This list may be omitted if the author feels that the variable names are self-explanatory enough to not require it. Use best judgement. o The argument/return list is followed by some examples of how to use the method, using its various types of arguments. The examples can also include ways to use the results if applicable. For instance, if the documentation is for a relationship type, the examples can include how to call the resulting relation accessor, how to use the relation name in a search and so on. If some of the examples assume default values, these should be shown with and without the actual arguments, with hints about the equivalent calls. The example should be followed by one or more paragraphs explaining what it does. Examples and explaining paragraphs can be repeated as necessary. AUTHOR AND CONTRIBUTORS
See AUTHOR and CONTRIBUTORS in DBIx::Class LICENSE
You may distribute this code under the same terms as Perl itself. perl v5.18.2 2013-12-16 DBIx::Class::Manual::Reading(3)
All times are GMT -4. The time now is 02:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy